<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title><?php echo $this->html_meta['page_title']; ?></title>

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="keywords" content="<?php echo $this->html_meta['meta_keywords']; ?>" />
	<meta name="description" content="<?php echo trim(strip_tags($this->html_meta['meta_description'])); ?>" />
	<?php 
		if (array_key_exists('robots', $this->html_meta))
			echo '<meta name="robots" content="',$this->html_meta['robots'],'" />';
		
		//if(array_key_exists('canonical', $this->html_meta))
			//echo '<link rel="canonical" href="', $this->html_meta['canonical'],'" />';	 
		
		foreach ($this->css_head as $item) 
			echo '<link rel="stylesheet" type="text/css" href="', $this->config->config['public_url'], $item,'" />';
	
		foreach ($this->javascript_head as $item) 
			echo '<script type="text/javascript" src="',$this->config->config['public_url'], $item,'"></script>';
		
	?>

	<?php 
	/*
	<!--
	TODO :: left to build commnets rss feed functionality
	<link rel="alternate" type="application/rss+xml" title="Article Pages &raquo; Feed" href="<?php echo $this->config->config['base_url']; ?>/feed/" />
	<link rel="alternate" type="application/rss+xml" title="Article Pages &raquo; Comments Feed" href="<?php echo $this->config->config['base_url']; ?>/comments/feed/" />
	<link rel="index" title="<?php echo $this->html_meta['page_title']; ?>" href="<?php echo $this->config->config['base_url']; ?>" />
	-->	
	*/
	?>
	
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '<?php echo $this->google_analytic_code;?>']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>

	<body>
		<div class="header">
			<div class="wrapper">
				<?php echo $header; ?>
			</div>
		</div>
		<div class="main">
			<div class="sidebar-left">
				<?php echo $sidebar_left; ?>
			</div>
			<div class="content"><?php echo $content; ?></div>
			<div class="sidebar-right"><?php echo $sidebar_right; ?></div>
			<div class="cb"></div>
		</div>
		<div class="footer">
			<div class="wrapper">
				<?php echo $footer; ?>
			</div>
		</div>
		
	</body>
</html>